package com.stress.testing.agent;

import java.io.PrintStream;

public class Logger {
    private String pattern = "{0,date,yyyy-MM-dd HH:mm:ss} | {1} | {1} | {1}";
    private final String name;
    private final PrintStream out;
    private final PrintStream err;

    private Logger(String name) {
        this(name, System.out, System.err);
    }

    public void info(String msg) {
        out.println(msg);
    }

    public void error(String msg, Throwable throwable) {

    }

    public static Logger getLogger(Class clazz) {
        return new Logger(clazz.getName());
    }

    public Logger(String name, PrintStream out, PrintStream err) {
        this.name = name;
        this.out = out;
        this.err = err;
    }
}
